package ${packageCode}.api.vx.${moduleMapperCode}.${(businessCode?uncap_first)!''}

import org.apache.commons.lang3.StringUtils
import ${packageCode}.${moduleMapperCode}.service.${businessCode}Service
import top.cardone.context.ApplicationContextHolder
import top.cardone.core.CodeException

class r0002 implements java.io.Serializable {
    def input(input) {
        input
    }

    def validation(input) {
    }

    def func(input) {
		ApplicationContextHolder.getBean(${businessCode!''}Service.class).findListByKeyword(input)
    }

    def output(output) {
        def newOutput = []

        for (def outputItem : output) {
			newOutput.add(['value': outputItem['name'], 'id': outputItem['${entityMapper.tableName}_id'], 'code': outputItem['${entityMapper.tableName}_code']])
        }

        newOutput
    }
}
